package com.example.demo.mapper;

import com.example.demo.entity.Layout;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LayoutMapper {
    @Select("select * from layout")
    List<Layout> getAllLayout();


    @Select("select * from layout where level=#{level}")
    List<Layout> getLevelAllLayout(int level);
}
